﻿#ifndef CHOSSEVIDEO_H
#define CHOSSEVIDEO_H
#include<QFile>
#include<QTcpServer>
#include<QTcpSocket>
#include<QString>
#include<QTimer>


class ChosseVideo
{
public:
    using ptrsocket = std::shared_ptr<ChosseVideo>;
    using ptrserver = std::shared_ptr<ChosseVideo>;

    ChosseVideo(QTcpSocket* tcpsocket);
public slots:
    void SendMsg();
private:

    QTcpSocket *socket     = nullptr;

    QFile file;//文件对象
    QString fileName;
    qint64 fileSize        = 0;
    qint64 SendSize        = 0;//发送文件的大小

    QTimer *timer;
};

#endif // CHOSSEVIDEO_H
